test: test.i test.s test.o

test.i:
	gcc -E test.c -o test.i
test.o:
	gcc -c test.s -o test.o
test.s:
	gcc -S test.i -o test.s

test:
	gcc test.c -o test

.PHONY:
clean:
	rm -rf test test.i test.s test.o
.PHONY:
cp:
	cp test test_2